<?php
/**
 *
 */
namespace main;
class main{
    public static $classMap = array();
    public $assign = array();
    static public function load($class)
    {
        //自动加载内库
        if(isset(self::$classMap[$class])){
            return true;
        }else{
            $class = str_replace('\\','/',$class);
            $file = BM_ROOT.'/'.$class.'.php';
            if(file_exists($file) && is_file($file)){
                self::$classMap[$class] = $class;
                include $file;
            }else{
                return false;
            }
        }
    }
}